package cn.itcast.service.role;

import cn.itcast.domain.Role;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface RoleService {

    PageInfo findAll(int pageNum, int pageSize, String companyId);

    void save(Role role);


    Role findById(String id);
    void update(Role role);


    void delete(String id);

    List<Role> findAllRole(String company_id);

    List<Role> findUserRole(String id);
   //根据角色名查角色id
    Role findId(String rolename);

}
